package edu.sctu.practice.class02.renzhaoxu.test07;

/**
 * Created by Administrator on 2015/10/15.
 */
public class WuMingFen {

    String theMa;
    int quantity;
    boolean likeSoup;

    public WuMingFen(String theMa,int quantity){

        this.theMa=theMa;
        this.quantity=quantity;

    }


    public WuMingFen(String theMa,int quantity,boolean likeSoup){
        this(theMa,quantity);
        this.likeSoup=likeSoup;
    }
    public void check(){

        System.out.println("面粉"+theMa+"分量"+quantity+"面汤"+likeSoup);
    }


    public static void main(String[] args) {


        WuMingFen f1 = new WuMingFen("面粉",3,true);
        WuMingFen f2 = new WuMingFen("面粉",2);


        f1.check();
        f2.check();

    }

}
